package im.oen.gui.tools.component;

import im.oen.boot.common.utils.Checker;

import javax.swing.*;

/**
 * @author Kevin.Xu
 */
public class JPassword extends JPasswordField {

    public String getPass() {
        char[] pass = this.getPassword();
        if (Checker.isEmpty(pass)) {
            return null;
        }
        return String.valueOf(pass);
    }
}
